Skip to content

Conversation

@Galoretka
Copy link
Contributor

The previous iteration returned the first error in the etherscan configs, even if a valid config for the requested chain existed later. This was inconsistent with the function’s doc (“Returns the first config that matches the chain”) and caused spurious failures when unrelated entries were misconfigured.
The new logic returns a matching Ok config if present; otherwise, it prefers UnknownChain errors for the requested chain, then falls back to the first error, else None. Added tests to enforce the intended behavior.

@DaniPopes
Copy link
Member

dont think this is right

@DaniPopes DaniPopes closed this Dec 22, 2025
@github-project-automation github-project-automation bot moved this to Done in Foundry Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants